package com.linghu.web;

import com.linghu.service.ReminderReceiver;
import com.linghu.service.ReminderSender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
/** MQ消息队列测试 */
@RestController
@RequestMapping("/api/reminder")
public class ReminderController {

    @Autowired
    private ReminderSender reminderSender;


    @PostMapping("/send")
    public String sendReminder(@RequestParam String message) {
        reminderSender.sendReminder(message);
        return "消息已发送到mq！";
    }

}